package payroll.trans;

import payroll.Employee;
import payroll.PaymentMethod;
import payroll.Transaction;
import payroll.method.MailMethod;

public abstract class ChangeMethodTransaction extends ChangeEmployeeTransaction {

	public ChangeMethodTransaction(int empId) {
		super(empId);
	}

	protected abstract PaymentMethod getPaymentMethod();

	@Override
	public void doChange(Employee e) {
		e.setPaymentMethod(getPaymentMethod());
	}

}